using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BlueFinity.mvNET.CoreObjects;

namespace fenk.Ventas.CtasCtes
{
    public partial class GestionCobranzas : mvLibrary.BaseForm
    {
        public GestionCobranzas()
        {
            InitializeComponent();
        }

        private void GestionCobranzas_Load(object sender, EventArgs e)
        {
            InvoicesGrid.Font = new Font("Courier New", 8.25f);
        }
        public override void AfterReadItem()
        {
            
            // buscar facturas impagas
            CallProgram("LOAD.GESTION.COBRANZAS", 1, 1);
            // llenar grilla con detalle
            InvoicesGrid.Rows.Clear();
            int cantidad = AplicData.DCount(1, DataBASIC.VM);
            for (int a = 1; a <= cantidad; ++a)
            {
                InvoicesGrid.Rows.Add(AplicData[1, a, 1].ToString());
            }
            // mostrar totales
            mvLabel1.GetDefaultValue();
            mvLabel2.GetDefaultValue();
            mvLabel3.GetDefaultValue();
        }

        private void textNextId_Enter(object sender, EventArgs e)
        {
            // detalle amplio label Cliente
            if (Labels.Count > 0)
            {
                Labels[0].AutoSize = true;
            }
        }

        

        
    }
}

